import requests,json
def walking(key, origin, destination, sig=None, output="json", callback=None):

    walking_url = "https://restapi.amap.com/v3/direction/walking?parameters"
    params = {
        "key": key,
        "origin": origin,
        "destination": destination,
        "sig": sig,
        "output": output,
        "callback": callback
    }
    r = requests.get(walking_url, params=params)
    return r.json()